package com.ruoyi.common.base.enums;


import com.ruoyi.common.base.vo.ComKeyValueVo;

import java.util.ArrayList;
import java.util.List;

/**
 * 岩层枚举
 *
 * @author gu
 */
public enum RockFormationEnum {
    FALSEROOF("1", "伪顶"),//100
    IMMEDIATEROOF("2", "直接顶"),//200
    COALSEAM("3", "煤层"),//300
    DIRTINCLUSION("4", "夹矸"),//500
    PINCHOUT("5", "尖灭"),
    FALSEBOTTOM("6", "伪底"),
    IMMEDIATEFLOOR("7", "直接底"),
    FAULT("8", "断层"),
    FOLD("9", "褶皱"),
    COLLAPSECOLUMN("10", "陷落柱");
    private final String code;
    private final String type;

    RockFormationEnum(String code, String type) {
        this.code = code;
        this.type = type;
    }

    public static List<ComKeyValueVo> getArmTypeEnumList() {
        ArrayList<ComKeyValueVo> armTypeEnumList = new ArrayList<>();
        for (RockFormationEnum armTypeEnum : RockFormationEnum.values()) {
            ComKeyValueVo armTypeEnumVo = new ComKeyValueVo();
            armTypeEnumVo.setKey(armTypeEnum.code);
            armTypeEnumVo.setValue(armTypeEnum.type);
            armTypeEnumList.add(armTypeEnumVo);
        }
        return armTypeEnumList;
    }

    public String getCode() {
        return code;
    }

    public String getType() {
        return type;
    }
}
